package org.zxl.iotest.netty.protobuf.util;

/**
 * @author zhangxiaolong
 * @date 2025-02-16 18:13
 **/
public class ZxlMsg {
    private Integer msgId;
    private Integer msgLen;
    private byte[] msgBody;
    private Object msgObj;

    public Object getMsgObj() {
        return msgObj;
    }

    public void setMsgObj(Object msgObj) {
        this.msgObj = msgObj;
    }

    public Integer getMsgId() {
        return msgId;
    }

    public void setMsgId(Integer msgId) {
        this.msgId = msgId;
    }

    public Integer getMsgLen() {
        return msgLen;
    }

    public void setMsgLen(Integer msgLen) {
        this.msgLen = msgLen;
    }

    public byte[] getMsgBody() {
        return msgBody;
    }

    public void setMsgBody(byte[] msgBody) {
        this.msgBody = msgBody;
    }
    public ZxlMsg(Integer msgId, Integer msgLen) {
        this.msgId = msgId;
        this.msgLen = msgLen;
    }
    public ZxlMsg(Integer msgId, Integer msgLen, byte[] msgBody) {
        this.msgId = msgId;
        this.msgLen = msgLen;
        this.msgBody = msgBody;
    }
    public ZxlMsg() {
    }
}
